package ltd.dujiabao.springcloud.service;

import ltd.dujiabao.springcloud.entities.CommonResult;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author : DuJiabao
 * @Project : springcloud
 * @Time : 2021/5/26 21:00
 * @Desc :
 */
@FeignClient("seata-account-service")
public interface AccountFeignService {
  @PostMapping("/account/decrease")
  CommonResult decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}
